﻿using Microsoft.AspNetCore.Http;

namespace Md.Api.Model.Util.Upload.Request;
/// <summary>
/// 文件分片上传请求实体类
/// </summary>
public class RequestMultipartUploadModel : RequestBaseModel
{
    /// <summary>
    /// 分片索引，位置
    /// </summary>
    public long Index { get; set; }
    /// <summary>
    /// 文件名称
    /// </summary>
    public string? Name { get; set; }
    /// <summary>
    /// 扩展名
    /// </summary>
    public string? Ext { get; set; }
    /// <summary>
    /// 文件总大小
    /// </summary>
    public long Size { get; set; }
    /// <summary>
    /// 文件MD5加密串
    /// </summary>
    public string? FileMD5 { get; set; }
    /// <summary>
    /// 文件分片名称
    /// </summary>
    public string? ChunkName { get; set; }
    /// <summary>
    /// 文件分片MD5加密串
    /// </summary>
    public string? ChunkMD5 { get; set; }
    /// <summary>
    /// 文件分片大小
    /// </summary>
    public long ChunkSize { get; set; }
    /// <summary>
    /// 文件分片个数
    /// </summary>
    public long ChunkCount { get; set; }
    /// <summary>
    /// 文件唯一标识
    /// </summary>
    public string? UId { get; set; }
    /// <summary>
    /// 分片开始位置
    /// </summary>
    public long ChunkStart { get; set; }
    /// <summary>
    /// 分片结束位置
    /// </summary>
    public long ChunkEnd { get; set; }
    /// <summary>
    /// 表单值，用于接收文件
    /// </summary>
    public IFormCollection? Form { get; set; }

}

